package managedbean.SCM.DeliveryOrder;

import entity.SCM.DeliveryOrder;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import session.stateless.SCM.DeliveryOrderBeanLocal;

@ManagedBean(name = "viewDeliveryOrderManagerBean")
@ViewScoped
public class ViewDeliveryOrderManagerBean implements Serializable{

    public ViewDeliveryOrderManagerBean() {
    }
    
    @EJB
    private DeliveryOrderBeanLocal deliveryOrderBeanLocal;
    private DeliveryOrder selectedDeliveryOrder;
    private String statusMessage;

    public DeliveryOrder getSelectedDeliveryOrder() {
        return selectedDeliveryOrder;
    }

    public void setSelectedDeliveryOrder(DeliveryOrder selectedDeliveryOrder) {
        this.selectedDeliveryOrder = selectedDeliveryOrder;
    }

    public String getStatusMessage() {
        return statusMessage;
    }

    public void setStatusMessage(String statusMessage) {
        this.statusMessage = statusMessage;
    }
    
    
    public List<DeliveryOrder> getDeliveryOrder(){
        return deliveryOrderBeanLocal.getDeliveryOrder();
    }
    
}
